package com.loan.repository;

import com.loan.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by huxudong on 17/7/12.
 */
public interface UserRepository extends JpaRepository<User,Long>{

    User findByUsernameAndPasswordAndFlag(String username , String password , Integer flag);

    User findByPhoneAndPasswordAndFlag(String phone , String password , Integer flag);

    User findByPhone(String phone);

    User findByTokenAndFlag(String token , Integer flag);

}
